home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / utility / ffe101.zip / SOUND.SWG / 0026_WAV.pas < prev    next >
Pascal/Delphi Source File  |  1996-09-04  |  2KB  |  39 lines

  1. --------S-WAVE------------------------------
  2.  
  3. The  Windows .WAV files are RIFF  format files. Some programs expect the
  4. fmt  block right behind the RIFF  header itself, so your programs should
  5. write out this block as the first block in the RIFF file.
  6.  
  7. The subblocks for the wave files are
  8. RiffBLOCK [data]
  9. This  block contains the raw sample  data. The necessary information for
  10. playback is contained in the [fmt ] block.
  11.  
  12. RiffBLOCK [fmt ]
  13. This block contains the data necessary for playback of the sound
  14. files. Note the blank after fmt !
  15. OFFSET              Count TYPE   Description
  16. 0000h                   1 word   Format tag
  17.                                    1 = PCM (raw sample data)
  18.                                    2 etc. for APCDM, a-Law, u-Law ...
  19. 0002h                   1 word   Channels (1=mono,2=stereo,...)
  20. 0004h                   1 dword  Sampling rate
  21. 0008h                   1 dword  Average bytes per second (=sampling rate*channels)
  22. 000Ch                   1 word   Block alignment / reserved ??
  23. 000Eh                   1 word   Bits per sample (8/12/16-bit samples)
  24.  
  25. RiffBLOCK [loop]
  26. This  block is for looped samples. Very few programs support this block,
  27. but  if  your  program  changes the  wave  file,  it should preserve any
  28. unknown blocks.
  29. OFFSET              Count TYPE   Description
  30. 0000h                   1 dword  Start of sample loop
  31. 0004h                   1 dword  End of sample loop
  32.  
  33. EXTENSION:WAV
  34. SEE ALSO:RIFF,VOC
  35. OCCURENCES:PC
  36. PROGRAMS:Windows,GUSWAV,WAV2VOC
  37. VALIDATION:NONE
  38.  
  39.